﻿using System;
using System.Collections.Generic;
using HelfenHelfen.Logic.Interfaces;
using HelfenHelfen.Interfaces;

namespace HelfenHelfen.Logic.Factories{
   public static class LogicFactory{
      public static IOrganisationLogic CreateOrganisationLogic(){
         return new OrganisationLogic();
      }

      public static IDemandLogic CreateDemandLogic() {
         return new DemandLogic();
      }

      public static IDemandCategoryLogic CreateDemandCategoryLogic() {
         return new DemandCategoryLogic();
      }

      public static IBonusItemLogic CreateBonusItemLogic()
      {
          return Activator.CreateInstance(BonusItemLogicType) as IBonusItemLogic;
      }

      public static Type BonusItemLogicType = typeof(BonusItemLogic);

      public static IMessageLogic CreateMessageLogic()
      {
          return new MessageLogic();
      }

      public static IUserDetailLogic CreateUserDetailLogic()
      {
          return new UserDetailLogic();
      }
   }
}
